package com.gxa.ssm251.pojo;


import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

/**
 * @author 舒空
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("兑换码表")
public class RedeemCode implements Serializable {

  @ApiModelProperty(name = "id",value = "兑换码编号")
  private Integer id;
  @ApiModelProperty(name = "name",value = "兑换码名称")
  private String name;
  @ApiModelProperty(name = "code",value = "兑换码")
  private String code;
  @ApiModelProperty(name = "content",value = "发送兑换码原因")
  private String content;
  @ApiModelProperty(name = "startTime",value = "开始时间")
  @JsonFormat(pattern = "yyyy-MM-dd")
  private java.sql.Date startTime;
  @ApiModelProperty(name = "endTime",value = "结束时间")
  @JsonFormat(pattern = "yyyy-MM-dd")
  private java.sql.Date endTime;
  @ApiModelProperty(name = "number",value = "优惠券数量")
  private Integer number;
  @ApiModelProperty(name = "price",value = "优惠券价格")
  private Double price;
  @ApiModelProperty(name = "scopeList",value = "兑换码使用范围")
  private List<CpScope> scopeList;

}
